import {createStore} from 'vuex'

export default createStore({
  state: {
    globalPosition: "上海"
  },
  mutations: {
    setGlobalPosition(state, newPosition) {
      state.globalPosition = newPosition;
    }
  },
  actions: {},
  modules: {},
  getters: {
    getGlobalPosition: (state) => {
      return state.globalPosition;
    }
  }
})
